package neo

import org.neo4j.ogm.annotation.Id
import org.neo4j.ogm.annotation.NodeEntity
import org.neo4j.ogm.annotation.Relationship

@NodeEntity
open class Movie {
  @Id lateinit var id: String
  lateinit var title: String
  var released = 0

  @Relationship(type = "ACTS_IN", direction = Relationship.Direction.INCOMING)
  var actors: MutableSet<Actor> = HashSet()
}
